
#include "NanoCore.h"
#include "windows.h"
#include <commctrl.h>
#include "richedit.h"
#include "resource.h"

#define CFM_BACKCOLOR 0x04000000 


namespace Nano {

	class NanoWinCore : public NanoCore {
			
	public:
		NanoWinCore(HINSTANCE hInstance, int nCmdShow);
		~NanoWinCore();
		
		bool Update();
		void Layout();
	
		void createDocumentView(Document *document);

		static LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam);
		
	private:
		
		WNDCLASSEX wc;
		HWND hwnd;
		HWND editorWindow;
		HWND documentTabber;
	};
}
